<template>
  <div>
    <header-temp :gid='gid' :title='title' :headType='headType'></header-temp>
  </div>
</template>

<script>
import headerTemp from '@/components/head2'
export default {
  name: "palyheader",
  data() {
    return {
      gid:'',
      title:'',
      headType:''
    };
  },
  components: {
    headerTemp
  },
  methods: {
   
  },
  created() {
    let path = this.$route.path;
    let gid = path.split('/')[path.split('/').length-1];
    this.gid = gid;
    this.title = this.lottery[gid].name;
    this.headType = this.$route.meta.headType;
  }
};
</script>

<style scoped>
.header {
  position: fixed;
  z-index: 10;
  width: 100%;
  height: 0.4rem;
  background: #fff;
  display: flex;
  align-items: center;
  font-size: 0.16rem;
  color: #333;
  justify-content: center;
}
.leftImg {
  width: 0.4rem;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;

  display: flex;

  align-items: center;

  justify-content: center;
}
.RightImg {
  position: absolute;
  width: 0.27rem;
  height: 100%;
  right: 0.1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.RightImg img {
  width: 100%;
  height: 0.26rem;
  display: inline-block;
}
</style>